package com.mybatis.study.model;

import java.util.Date;

public class User {
    private String id;

    private Integer isAdmin;

    private String username;

    private String realName;

    private String email;

    private Boolean isEmailCertified;

    private String mobile;

    private Boolean isMobileCertified;

    private String phone;

    private String password;

    private Byte sex;

    private String position;

    private String authToken;

    private String resetPasswordToken;

    private Date lastLoginTime;

    private Boolean status;

    private Date createTime;

    private Date updateTime;

    private String roles;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public Integer getIsAdmin() {
        return isAdmin;
    }

    public void setIsAdmin(Integer isAdmin) {
        this.isAdmin = isAdmin;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName == null ? null : realName.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public Boolean getIsEmailCertified() {
        return isEmailCertified;
    }

    public void setIsEmailCertified(Boolean isEmailCertified) {
        this.isEmailCertified = isEmailCertified;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile == null ? null : mobile.trim();
    }

    public Boolean getIsMobileCertified() {
        return isMobileCertified;
    }

    public void setIsMobileCertified(Boolean isMobileCertified) {
        this.isMobileCertified = isMobileCertified;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public Byte getSex() {
        return sex;
    }

    public void setSex(Byte sex) {
        this.sex = sex;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position == null ? null : position.trim();
    }

    public String getAuthToken() {
        return authToken;
    }

    public void setAuthToken(String authToken) {
        this.authToken = authToken == null ? null : authToken.trim();
    }

    public String getResetPasswordToken() {
        return resetPasswordToken;
    }

    public void setResetPasswordToken(String resetPasswordToken) {
        this.resetPasswordToken = resetPasswordToken == null ? null : resetPasswordToken.trim();
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getRoles() {
        return roles;
    }

    public void setRoles(String roles) {
        this.roles = roles == null ? null : roles.trim();
    }

	@Override
	public String toString() {
		return "User [id=" + id + ", isAdmin=" + isAdmin + ", username=" + username + ", realName=" + realName
				+ ", email=" + email + ", isEmailCertified=" + isEmailCertified + ", mobile=" + mobile
				+ ", isMobileCertified=" + isMobileCertified + ", phone=" + phone + ", password=" + password + ", sex="
				+ sex + ", position=" + position + ", authToken=" + authToken + ", resetPasswordToken="
				+ resetPasswordToken + ", lastLoginTime=" + lastLoginTime + ", status=" + status + ", createTime="
				+ createTime + ", updateTime=" + updateTime + ", roles=" + roles + "]";
	}
    
}